package com.spring.test;

import com.spring.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext beans=new AnnotationConfigApplicationContext("com.spring");
        UserController uc = beans.getBean("userController", UserController.class);
        uc.print();
    }
}
